<?php
abstract class Pageley_Domain_AbstractEnumeration implements Pageley_Domain_Enumeration {

	private $name;
	private $index;
	
	public function __construct($name, $index = 0) {
		$this->name = $name;
		$this->index = $index;
	}
	
	public function getName() {
		return $this->name;
	}
	
	public function getIndex() {
		return $this->index;
	}
	
	public function __toString() {
		return $this->name;
	}
    
    public function equals($object) {
        return $this === $object;
    }
}